<template>
  <div id="demo">
    <button @click="show = !show">Toggle</button>
    <transition
      name="animate__animated animate__bounce"
      enter-active-class="animate__backInRight"
      leave-active-class="animate__zoomInLeft"
    >
      <p v-if="show">Animate.css</p>
    </transition>
  </div>
</template>

<script>
import "animate.css";
export default {
  name: "Hello4",
  data() {
    return {
      show: false,
    };
  },
};
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped>
#demo {
  padding: 30px;
}
/*

      name="animate__animated animate__bounce"
      固定写法
 */
</style>
